home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13834 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help on:Printing to Printer from within c / c++ program
  5. Date: 10 Apr 1996 07:53 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <10APR199607532757@erich.triumf.ca>
  9. References: <316a58d0.5945808@nntp.ix.netcom.com>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <316a58d0.5945808@nntp.ix.netcom.com>, cmalinow@ix.netcom.com (Chris Malinowski) writes...
  14. >Newbie requires help.
  15. >Trying to read in a seq file from disk, and print on the printer.
  16. >OPEN of input file works ok, but am having difficulty opening the
  17. >output file as the printer device.
  18. >System is Dos/ Windows 3.1
  19. >Borland c++ 3.1
  20. >Redirect is out of the question, must perform the file open from
  21. >withing the progam.
  22.  
  23. This is a system-specific problem, so you will probalby get a better response
  24. on an Windoze newsgroup, like comp.os.mswindows.programmer.misc.
  25.  
  26. Under DOS,  Borland compilers automagically open the printer as "stdprn", so
  27. you can just do fprintf(stdprn,"the usual printf stuff..."); but I suspect this
  28. won't work under Windoze (but it might - I haven't got that far in Windoze...)
  29.  
  30.  
  31. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  32. Internet: bennett@triumf.ca         | of one another only when one can be
  33. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  34. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  35. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  36. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  37.  
  38.